'use strict';

const Service = require('egg').Service;

class ProductService extends Service {
    async getProduct(id) {
        return await this.app.mysql.query('select * from product where pid=?',[id]);
    }
}

module.exports = ProductService;
